<template>
  <div class="flex justify-between w-full">
    <div class="flex gap-2">
      <el-button 
        :type="$route.path === '/fis' ? 'primary' : 'info'" 
        @click="navigateTo('/fis')"
      >
        FIS单打印
      </el-button>
      <el-button 
        :type="$route.path === '/res' ? 'primary' : 'info'" 
        @click="navigateTo('/res')"
      >
        防差错结果
      </el-button>
    </div>
    <div>
      <el-button type="info">设置</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const navigateTo = (path) => {
  router.push(path);
};
</script>